package request

type AddArticleReq struct {
	Context     string `form:"context" binding:"required"`      // 动态内容
	ArticleType int    `form:"article_type" binding:"required"` // 文本类型：1-文本，2-图片，3-视频
	GoodNum     int    `form:"good_num" binding:"required"`     // 点赞量
	CommentNum  int    `form:"comment_num" binding:"required"`  // 动态总评论数
}

type FocusReq struct {
	FocusId int `form:"focus_id" binding:"required"` // 关注的id
}

type AddArticleLikeReq struct {
	ArticleId int `form:"article_id" binding:"required"` // 动态id
	Option    int `form:"option" binding:"required,oneof=1 2"`
}

type AddCommentReq struct {
	ArticleId int    `form:"article_id" binding:"required"`      // 动态id
	Content   string `form:"content" binding:"required,max=100"` // 评论内容
	FatherId  int    `form:"father_id"`                          // 父id
	Option    int    `form:"option" binding:"required,oneof=1 2"`
}

type AddCommentLikeReq struct {
	CommentId int `form:"comment_id" binding:"required"` // 评论id
	Option    int `form:"option" binding:"required,oneof=1 2"`
}

type HistoryReq struct {
	Option string `form:"option" binding:"required,oneof=like comment"`
}
